<?php
	error_reporting(E_ALL);
	//header('Content-type: text/html; charset=utf-8');
	include("../view/header.php"); // Inclusion de la navbar

	$page = filter_input(INPUT_GET, 'page',FILTER_SANITIZE_STRING);	
	
	switch($page){
		case 'contact':
			include('../view/contact.php');
			break;
		case 'inscription':
			include('../view/inscription.php');
			break;
		case 'produits':
			include('../view/produits.php');
			break;
		case 'connexion':
			include('../view/connexion.php');
			break;
		case 'panier':
			include('../view/panier.php');
			break;
		case 'profil':
			include('../view/profil.php');
			break;
		default: // Accueil
			include("../view/carousel.php"); 
			include("../view/accueil.php");
	}
?>
